package com.ruoyi.program.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.program.mapper.CpsAlipayApplicationsMapper;
import com.ruoyi.program.domain.CpsAlipayApplications;
import com.ruoyi.program.service.ICpsAlipayApplicationsService;

/**
 * 支付宝第三方应用模板Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-12
 */
@Service
public class CpsAlipayApplicationsServiceImpl implements ICpsAlipayApplicationsService 
{
    @Autowired
    private CpsAlipayApplicationsMapper cpsAlipayApplicationsMapper;

    /**
     * 查询支付宝第三方应用模板
     * 
     * @param id 支付宝第三方应用模板主键
     * @return 支付宝第三方应用模板
     */
    @Override
    public CpsAlipayApplications selectCpsAlipayApplicationsById(Long id)
    {
        return cpsAlipayApplicationsMapper.selectCpsAlipayApplicationsById(id);
    }

    /**
     * 查询支付宝第三方应用模板列表
     * 
     * @param cpsAlipayApplications 支付宝第三方应用模板
     * @return 支付宝第三方应用模板
     */
    @Override
    public List<CpsAlipayApplications> selectCpsAlipayApplicationsList(CpsAlipayApplications cpsAlipayApplications)
    {
        return cpsAlipayApplicationsMapper.selectCpsAlipayApplicationsList(cpsAlipayApplications);
    }

    /**
     * 新增支付宝第三方应用模板
     * 
     * @param cpsAlipayApplications 支付宝第三方应用模板
     * @return 结果
     */
    @Override
    public int insertCpsAlipayApplications(CpsAlipayApplications cpsAlipayApplications)
    {
        return cpsAlipayApplicationsMapper.insertCpsAlipayApplications(cpsAlipayApplications);
    }

    /**
     * 修改支付宝第三方应用模板
     * 
     * @param cpsAlipayApplications 支付宝第三方应用模板
     * @return 结果
     */
    @Override
    public int updateCpsAlipayApplications(CpsAlipayApplications cpsAlipayApplications)
    {
        return cpsAlipayApplicationsMapper.updateCpsAlipayApplications(cpsAlipayApplications);
    }

    /**
     * 批量删除支付宝第三方应用模板
     * 
     * @param ids 需要删除的支付宝第三方应用模板主键
     * @return 结果
     */
    @Override
    public int deleteCpsAlipayApplicationsByIds(Long[] ids)
    {
        return cpsAlipayApplicationsMapper.deleteCpsAlipayApplicationsByIds(ids);
    }

    /**
     * 删除支付宝第三方应用模板信息
     * 
     * @param id 支付宝第三方应用模板主键
     * @return 结果
     */
    @Override
    public int deleteCpsAlipayApplicationsById(Long id)
    {
        return cpsAlipayApplicationsMapper.deleteCpsAlipayApplicationsById(id);
    }
}
